package com.yss.netty.protocol;

import com.yss.pojo.BondDTO;
import com.yss.pojo.NettyServerAck;
import lombok.Getter;

import java.util.Collection;

@SuppressWarnings("all")
public enum CommandType {

    /**
     * BOND
     */
    BOND(BondDTO.class),
    /**
     * Server ACK
     */
    SERVERACK(NettyServerAck.class),
    /**
     * Heart beat
     */
    PING,
    /**
     * Heart beat
     */
    PONG;

    @Getter
    private Class mappingClass;

    CommandType() {
    }

    CommandType(Class mappingClass) {
        this.mappingClass = mappingClass;
    }

}
